home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / F_J / HPUPDATE.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-03-26  |  2KB  |  55 lines

  1. @echo off
  2. cls
  3. Echo Working....
  4. if exist hnpws.dll goto CHECKPARMS
  5. goto ERROR
  6. :CHECKPARMS
  7. if exist %1\HODJPODJ\META\HODJPODJ.EXE GOTO OK
  8. if exist C:\HODJPODJ\META\HODJPODJ.EXE GOTO DEFAULT
  9. if %1x==x goto USAGE
  10. Goto REINSTALL
  11. :USAGE
  12. Echo Error! The HODJPODJ directory on your hard drive wasn't found.
  13. Echo Please specify the letter of the hard drive on which
  14. Echo Hodj `N' Podj was installed.
  15. Echo.
  16. Echo For example, if you installed Hodj `N' Podj to your C:
  17. Echo drive then type the following...
  18. Echo.
  19. Echo                INSTALL C:
  20. Echo.
  21. Echo If you did specify the correct drive letter then reinstall 
  22. Echo Hodj `N' Podj from the CD and try again.
  23. Echo.
  24. goto END:
  25. :DEFAULT
  26. copy hnpws.dll C:\HODJPODJ\META
  27. cls
  28. Echo Hodj `N' Podj is now updated.
  29. goto END
  30. :OK
  31. copy hnpws.dll %1\HODJPODJ\META
  32. cls
  33. Echo Hodj `N' Podj is now updated.
  34. goto END
  35. :ERROR
  36. Echo Error! All of the files needed by the installer couldn't be found.
  37. Echo.
  38. Echo This can be caused by attempting to start the installer from a 
  39. Echo drive or directory other than the one in which the installer is located.
  40. Echo.
  41. Echo For example, if the Hodj N' Podj update disk is in the A: drive
  42. Echo then make sure you are at the A: prompt before trying to run 
  43. Echo this batch file.
  44. goto END
  45. :REINSTALL
  46. CLS
  47. Echo.
  48. Echo Error! Please reinstall Hodj `N' Podj from the CD's and try again.
  49. Echo The directory in which you install the game must be named "HODJPODJ"
  50. Echo or this batch file will not work. Alternatively, you can simply copy
  51. Echo the file "HNPWS.DLL" into your HODJPODJ\META directory to update.
  52. goto END
  53. :END
  54.  
  55.